package pers.agony.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.agony.pojo.User;
import pers.agony.service.UserService;

import java.util.List;

/**
 * @author : Agony
 * @date : Created in 9:52 下午 2021/11/6
 * @Description:
 * @Modified By:
 * @version: : 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping
    public List<User> findAllUser(){
        return userService.findAllUser();
    }
}
